package edu.sctu.practice.class01.zhengsenwen.assign.assign02;

/**
 * Created by user15 on 2015/10/8.
 */
//Rational 有理数
public class Rational {

    public float result;
    public float numberOne;
    public float nubmerTwo;


    public float add(float numberOne, float numberTwo) {
        result = numberOne + numberTwo;
        return result;
    }

    public float reduce(float nubmerOne, float nubmerTwo) {
        result = nubmerOne - nubmerTwo;
        return result;
    }

    public float multiply(float nubmerOne, float nubmerTwo) {
        result = nubmerOne * nubmerTwo;
        return result;
    }

    public float divide(float nubmerOne, float nubmerTwo) {
        result = nubmerOne / nubmerTwo;
        return result;
    }

}
